package com.fowo.api.model.quality.check.storage.bad.info;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 质检次品信息 导入导出辅助模型 */
@Getter
@Setter
public class QualityCheckStorageBadInfoExcelPo {

  @Size(max = 50, message = "质检单编号长度不能超过20")
  @ExcelProperty(value = "质检单编号")
  private Long parentId;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "模板类型")
  private String classifyName;

  @ExcelIgnore
  @ExcelProperty(value = "模板类型")
  private Long classify;

  @ExcelProperty(value = "次品量")
  private Integer productBadNum;

  @Size(max = 50, message = "字母长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "字母")
  private String letter;

  @Size(max = 50, message = "Sku长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "Sku")
  private String sku;
}
